﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="park.Led.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script src="../load.js?callback=InitList&release=0" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="d_topbox">
        <div>
            <span>所属城区：</span><select id="ddl_City" onchange="CitySelected()"></select><script
                id="full_City" type="text/x-jquery-tmpl"><option value="${id}">${name}</option></script>
            <span>所属片区：</span><select id="ddl_Area" onchange="AreaSelected()"></select><script
                id="full_Area" type="text/x-jquery-tmpl"><option value="${id}">${name}</option></script>
            <span>所属街道：</span><select id="ddl_Street"></select><script id="full_Street" type="text/x-jquery-tmpl"><option value="${id}">${name}</option></script>
            <span>名称：</span><input id="txtName" type="text" />
            <input id="btnSearch" type="button" value="查询" />
        </div>
    </div>
    <div class="table_box">
        <input id="btnAdd" type="button" value="添加" />
        <input id="btnSet" type="button" value="批量设置" onclick="SetMany();" />
        <input id="btnInsert" type="button" onclick="InsertMany();"
            value="批量插播" />
        <table id="tbl_CollectorList" width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr class="td_title">
                <td align="center">
                    <input type="checkbox" id="chkAll" />
                </td>
                <td align="center">
                    设备编码
                </td>
                <td align="center">
                    设备名称
                </td>
                <td align="center">
                    诱导屏编码
                </td>
                <td align="center">
                    所属诱导设备
                </td>
                <td align="center">
                    是否启用
                </td>
                <td align="center">
                    默认显示
                </td>
                <td colspan="2" align="center">
                    操作
                </td>
            </tr>
        </table>
        <script id="full_CollectorList" type="text/x-jquery-tmpl">       
        <tr flag="{{= id }}">
            <td align="center"><input type="checkbox" myid="{{= id}}" /></td>
            <td align="center">{{= code}}</td>
            <td align="center">${name}</td>
            <td align="center">${ledCode}</td>
            <td align="center">${parentName}</td>
            <td align="center">{{if enable-0==1 }}启用{{else}}未启用{{/if}}</td>
            <td align="center">${defaultText}</td>
            <td align="center">
                <a href="javascript:Edit({{= id }});">编辑</a>&nbsp;                
                <a href="javascript:Location({{= id }});">定位</a>&nbsp;
                <a href="javascript:Set({{= id }});">设置</a>&nbsp;
                <a href="javascript:InsertText({{= id }});">插播</a>&nbsp;
                <a href="javascript:Delete({{= id }});">删除</a>&nbsp;
            </td>
        </tr>          
        </script>
    </div>
    <script id="locationTmpl" type="text/x-jquery-tmpl">
       <div style="width:200px;">
            <p>{{= name }}</p>
            <p>{{= defaultText }}</p>
            <p>{{if enable==1 }}启用{{else}}未启用{{/if}}</p>
       </div>
       </script>
    </form>
</body>
</html>
